Linkedin Interview Question - Reorder List - Leetcode 143 - Python